import request from "@/utils/requset";


// 注册接口
export const register = (data) => {
  return request.post('/user/registered', data)
}

// 登录接口
export const login = (data) => {
  return request.post('/user/login', data)
}

//轮播图请求

export function getDetail(id) {
    return request({
        url: 'http://liufusong.top:8080/home/swiper',
        params: {
            id
        }
    })
}


//用户信息
export const user = () => {
  return request.get('/user')
}
// // 获取用户信息
// export const user = () =>{
//   return request('/user')
// }